package cn.xumaoyang.org.service.impl;

import cn.xumaoyang.basic.service.IBaseService;
import cn.xumaoyang.basic.service.impl.BaseServiceImpl;
import cn.xumaoyang.org.domain.Detail;
import cn.xumaoyang.org.mapper.DetailMapper;
import cn.xumaoyang.org.service.IDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
@Service
//查询的事务，只是看而不操作数据库的，在类上作用于全局。但是操作数据库的数据得单独注解；
@Transactional(readOnly = true , propagation = Propagation.SUPPORTS)
public class DetailServiceImpl extends BaseServiceImpl<Detail> implements IDetailService {

    @Autowired
    private DetailMapper detailMapper;

}
